﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MobileControlGuru.sqlite_db
{
    [Table("TaskInfoTB")]
    public class TaskInfoTB
    {
        /// <summary>
        /// 任务名称
        /// </summary>
        public string Name { get; set; }

        [Key] // 标记这个属性为主键
        public int id { get; set; }
        /// <summary>
        /// 重复次数
        /// </summary>
        public int RunTimes { get; set; }
        /// <summary>
        /// 设备名称多个
        /// </summary>
        public string DeviceNames { get; set; }
        /// <summary>
        /// corn 表达式
        /// </summary>
        public string Corn { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartDeteTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndDeteTime { get; set; }
        /// <summary>
        /// 优先级
        /// </summary>
        public int? Priority { get; set; }

        /// <summary>
        /// 当前任务状态 0 未开启 1运行中 2 已完成
        /// </summary>
        public int? State { get; set; }
        /// <summary>
        /// 当前触发器类型 0：开始结束时间 1：corn 表达式
        /// </summary>
        public int? Type { get; set; }
    }
}
